package cn.bbs.ba.ActionServlet;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import cn.bbs.ba.base.BaseDto;
import cn.bbs.ba.util.BASort;

public class TextMain extends A {

	public static void a() {
		System.out.println(010);
	}
	public static void main( String[] args) {
		
		List<BaseDto> list = new ArrayList<BaseDto>();
		BaseDto dto = new BaseDto();
		dto.setValue("LEVEL", "2");
		dto.setValue("name", "name2");
		list.add(dto);
		
		dto = new BaseDto();
		dto.setValue("LEVEL", "1");
		dto.setValue("name", "name1");
		list.add(dto);
		
		dto = new BaseDto();
		dto.setValue("LEVEL", "3");
		dto.setValue("name", "name3");
		list.add(dto);
		
		String[][] pkeys = {{"LEVEL","0"}};
		BASort sort = new BASort(pkeys);
		
		Collections.sort(list, sort);
		
		System.out.println(11);
		String str = null;
		System.out.println("" + str);
		if (("" + str).equals("")) {
			System.out.println("wo cao");
		}
		SimpleDateFormat from = new SimpleDateFormat("yyyyMMdd");
		try {
			System.out.println(from.parse(str));
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
//		A obj = new TextMain();
//		obj.a();
	}


}
